import request from '@/utils/request'

// 查询会员反馈信息列表
export function listFeedback(query) {
  return request({
    url: '/customer/feedback/list',
    method: 'get',
    params: query
  })
}

// 查询会员反馈信息详细
export function getFeedback(customerFeedbackId) {
  return request({
    url: '/customer/feedback/' + customerFeedbackId,
    method: 'get'
  })
}

// 新增会员反馈信息
export function addFeedback(data) {
  return request({
    url: '/customer/feedback',
    method: 'post',
    data: data
  })
}

// 修改会员反馈信息
export function updateFeedback(data) {
  return request({
    url: '/customer/feedback',
    method: 'put',
    data: data
  })
}

// 删除会员反馈信息
export function delFeedback(customerFeedbackId) {
  return request({
    url: '/customer/feedback/' + customerFeedbackId,
    method: 'delete'
  })
}

// 修改会员反馈信息
export function auditFeedback(data) {
  return request({
    url: '/customer/feedback/audit',
    method: 'post',
    data: data
  })
}
